/**
 * @Author: 张兴
 * @Date: 2019/6/20
 * @Last Modified by:   张兴
 * @Last Modified time: 2019-09-12 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 索赔查询
export const getAttribute = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/getAttribute`, {
  params
});
// 总成查询
export const selectZC = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/selectZC`, {
  params
});
// 删除三包 子表信息
export const deletData = (id) => axios.delete(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/${id}`);
// 修改
export const updateMaintain = params => axios.put(`${SERVER.AUDI_CLAIM}/maintain/ttWrMaintain/updateMaintain`, params);
// 新增三保单
export const saveAttribute = params => axios.post(`${SERVER.AUDI_CLAIM}/attribute/freeAttr/saveAttribute`, params);
// 总成查询
export const getFaute = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/getFaute`, {
  params
});
// 搜索帮助总成处查询
export const getFauteList = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/getFauteList`, {
  params
});
// 搜索帮助故障代码查询
export const getVsecondspa = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/getVsecondspa`, {
  params
});

// 搜索帮助故障类别代码查询
export const getVbreaksort = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/getVbreaksort`, {
  params
});
// 搜索帮助故障位置代码查询
export const getVbreaklocation = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/getVbreaklocation`, {
  params
});
// 三包查询
export const selectData = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/selectData`, {
  params
});

// 点击列表查询三包
export const getSB = params => axios.get(`${SERVER.AUDI_CLAIM}/attribute/ttWrFreeAttr/getSB`, {
  params
});
